import request from "../utils/request";
// 根据id公司动态
export function getById(id) {
  return request.get(`/companydynamic/${id}`);
}
// 获取公司动态列表
export function getList(params) {
  return request.get("/companydynamic", { params: params });
}

// 添加公司动态
export function addBusiness(data) {
  return request.post("/companydynamic", data);
}
// 修改状态
export function vimState(id,delivery){
    return request.post(`/companydynamic/IsActived/${id}`, delivery);
}

// 修改公司动态
export function modBusiness(id, data) {
         return request.put(`/companydynamic/${id}`, data);
       }
//删除公司动态
export function deleteBusiness(id, data) {
         return request.delete(`/companydynamic/${id}`, data);
       }
